<HTML><HEAD><TITLE>reset_error_handler(+Number)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">Obsolete</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>reset_error_handler(+Number)</H1>
Resets the handler for error number Number to its default value.


<DL>
<DT><EM>Number</EM></DT>
<DD>Integer.
</DD>
</DL>
<H3>This built-in predicate is obsolete!</H3>
<H2>Description</H2>
   The error handler for the specified error number is reset to its default
   value, cancelling any previous redefinition.

<P>
   The errors which exist are implementation defined.

<P>

<H3>Modes and Determinism</H3><UL>
<LI>reset_error_handler(+) is det
</UL>
<H3>Exceptions</H3>
<DL>
<DT><EM>(4) instantiation fault </EM>
<DD>Number is not instantiated.
<DT><EM>(5) type error </EM>
<DD>Number is instantiated, but not to an integer.
<DT><EM>(6) out of range </EM>
<DD>Number is not a valid error number.
</DL>
<H2>Examples</H2>
<PRE>
Success:
      [eclipse]: string_list(S,L).
      instantiation fault in string_list(_g50, _g52)
      [eclipse]: set_error_handler(4,true/0), string_list(S,L).
      S = _g56
      L = _g58
      yes.
      [eclipse]: reset_error_handler(4), string_list(S,L).
      instantiation fault in string_list(_g62, _g64)

Error:
      reset_error_handler(N).    (Error 4).
      reset_error_handler(5.0).  (Error 5).
      reset_error_handler(1000). (Error 6).



</PRE>
<H2>See Also</H2>
<A HREF="../../kernel/event/reset_event_handler-1.html">reset_event_handler / 1</A>
</BODY></HTML>
